package com.aier.user.service;

import java.util.List;
import java.util.Map;

import com.aier.user.entity.Follow;
import com.aier.user.entity.FollowGroup;





public interface IMyFollowService {
    
    /**
     * 获取所有的关注分组
     * @param uid
     * @return
     */
    List<FollowGroup> searchFollowGroup(Long uid);
    
    /**
     * 获取所有的关注
     * @param page
     * @param pagesize
     * @param uid
     * @return
     */
    Map<String, Object> searchAllFollow(int page,int pagesize,Long uid,Long fgid,String sort,Short state);
    
    /**
     * 取消关注（批量）
     * @param uid
     * @param fuidStr
     * @return
     */
    int deleteFollow(Long uid,String fuidStr);
    
    /**
     * 新增关注
     * @param uid
     * @param fuid
     * @return
     */
    int insertFollow(Long uid,Long fuid);
    
    /**
     * 移动关注分组
     * @param foid
     * @return
     */
    int updateFollowGroup(Long uid,String fuidStr,Long fgid);
    
    /**
     * 新增关注分组
     * @param uid
     * @param gname
     * @return
     */
    int insertFollowGroup(Long uid,String name);
    
    /**
     * 求关注
     * @return
     */
    int insertRFLetter(Long uid,Long ruid,String content);
    
    /**
     * 获取关注分组的新鲜事
     * @param uid
     * @param fgid
     * @return
     */
    Map<String,Object> searchFreshByFgid(int page,int page_size,Long uid,Long fgid);
    
    /**
     * 获取关注的动态
     * @param page
     * @param pagesize
     * @param uid
     * @param fgid
     * @return
     */
    Map<String,Object> searchFollowDo(int page,int pagesize,Long uid,Long fgid);
    
    /**
     * 判断是否已加关注
     * @param uid
     * @param fuid
     * @return
     */
    int searchFollowByUid(Long uid,Long fuid);
    
    /**
     * 查询所有的关注昵称（@时用）
     * @param uid
     * @return
     */
    List<Follow> searchFollowForSpecial(Long uid);
    
    
    // 新版
    
    /**
     * 获取所有的好友
     * @param page
     * @param pagesize
     * @param uid
     * @return
     */
    Map<String, Object> searchAllFriend(int page,int pagesize,Long uid,Short state);
    
    Follow searchFriend(Long uid,Long fuid);
    
}
